package com.plian.system.controller.fr.time;

import com.plian.Tools.pagedata.PageData;
import com.plian.system.entity.fr.bigdata.Typetime;
import com.plian.system.service.sys.bigdata.TypetimeService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author huzb
 * @create 2020-10-29 10:23
 */
@RestController
@AllArgsConstructor
@RequestMapping("api/typetime")
public class TypetimeController {

    TypetimeService typetimeService;

    @PostMapping("/savetime")
//    @PassToken
    public void insertTimetypeInfo(@RequestBody PageData pd) {
        typetimeService.insertTimetypeInfo(pd);
    }

    @PostMapping("/gettime")
//    @PassToken
    public Typetime selecttypetime(@RequestBody PageData pd) {
        return typetimeService.selecttypetime(pd);
    }
}